/* 
 * File:   repere.c
 * Author: kraken
 *
 * Created on 5 février 2011, 20:33
 */
#include <stdlib.h>
#include <stdio.h>
#include <SDL/SDL.h>

#if (defined(__APPLE__))
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#else
#include <GL/gl.h>
#include <GL/glu.h>
#endif

void DrawRepere() {

    const int LengthAxe = 1;

    glBegin(GL_LINES);
    glColor3ub(255, 0, 0);
    glVertex3f(0, 0, 0); /* origin of the line*/
    glVertex3f(LengthAxe, 0, 0); /* ending point of the line*/
    glEnd();

    glBegin(GL_LINES);
    glColor3ub(0, 255, 0);
    glVertex3f(0, 0, 0);
    glVertex3f(0, LengthAxe, 0);
    glEnd();

    glBegin(GL_LINES);
    glColor3ub(0, 0, 255);
    glVertex3f(0, 0, 0);
    glVertex3f(0, 0, LengthAxe);
    glColor3ub(255, 255, 0);
    glEnd();

    glFlush();
}




